package com.designpatterns.composite.composite;

import java.util.ArrayList;

import com.designpatterns.composite.component.Employer;

/**
 * ProjectManager Class extends Employer Class
 * 
 * @see Employer
 * 
 * @author Haiqi.Wang
 * @since 2013-5-31下午5:51:59
 */
public class ProjectManager extends Employer {

	public ProjectManager(String name) {
		setName(name);
		employers = new ArrayList<Employer>();
	}

	@Override
	public void add(Employer employer) {
		employers.add(employer);
	}

	@Override
	public void delete(Employer employer) {
		employers.remove(employer);
	}

}
